package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <desc>
 * 用户余额变动记录表PO表.
 * </desc>
 *
 * @createDate 2018/4/24
 */
@Data
@NoArgsConstructor
@ItlTables("app_user_balance_change_record")
@EqualsAndHashCode(callSuper = true)
public class AppUserBalanceChangeRecordPO extends BasePO implements Serializable {

    @ItlField("record_id")
    private String recordId;        //余额变动记录id

    @ItlField("record_source")
    private Integer recordSource;    //记录来源:1微信支付 2人脸识别 3电梯刷卡

    @ItlField("record_type")
    private Integer recordType;      //记录类型：1充值 2扣费

    @ItlField("source_id")
    private String sourceId;        //来源id(如该记录来自支付中心此字段为订单id，如为扣费，此记录为通行记录id)

    @ItlField("money")
    private BigDecimal money;       //金额

    @ItlField("user_id")
    private String userId;          //用户id

}